import Vue from 'vue'
import {
    Button,
    Menu,
    MenuItem,
    MenuItemGroup,
    Submenu,
    Breadcrumb,
    BreadcrumbItem,
    Loading,
    Pagination,
    Table,
    TableColumn,
    Tabs,
    TabPane,
    Form,
    FormItem,
    Input,
    Select,
    Option,
    Checkbox,
    DatePicker,
    Dialog,
    Message,
    MessageBox,
    Badge,
    Row,
    Col,
    Notification,
    Popover,
    Tag,
    Cascader,
    Radio,
    RadioGroup
} from 'element-ui'

Vue.use(Button)
Vue.use(Menu).use(MenuItem).use(MenuItemGroup).use(Submenu)
Vue.use(Loading.directive)
Vue.use(Pagination)
Vue.use(Table).use(TableColumn)
Vue.use(Tabs).use(TabPane)
Vue.use(Form).use(FormItem)
Vue.use(Breadcrumb).use(BreadcrumbItem)
Vue.use(Input)
    .use(Select)
    .use(Option)
    .use(DatePicker)
    .use(Checkbox)
    .use(Dialog)
    .use(Badge)
    .use(Row)
    .use(Col)
    .use(Popover)
    .use(Tag)
    .use(Cascader)
    .use(Radio)
    .use(RadioGroup)

Vue.prototype.$message = Message
Vue.prototype.$alert = MessageBox.alert
Vue.prototype.$confirm = MessageBox.confirm
Vue.prototype.$prompt = MessageBox.prompt
Vue.prototype.$loading = Loading.service
Vue.prototype.$notify = Notification

export const notify = Notification



